package com.cy.mapstruct;

import com.cy.entity.SysUser;
import com.cy.vo.UserVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * UserMapstruct
 *
 * @author wxhn1
 * @since 2024-01-10 15:39
 */
@Mapper
public interface UserMapstruct {
	
	UserMapstruct USER_MAPSTRUCT = Mappers.getMapper(UserMapstruct.class);
	
	@Mapping(source = "username", target = "yhm")
	UserVO toUserVO(SysUser sysUser);
	
	
}

